<template>
  <div class="hello">
    <header class="mui-bar">
      <a v-if="$store.state.back" @click="goback" class="mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">{{$store.state.title}}</h1>
		</header>
  </div>
</template>

<script>
export default {
  name: 'hello',
  data(){
    return{
      title: 'HUMA 电影'
    }
  },
  methods:{
    goback(){
      this.$router.go(-1)
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .mui-icon{
    color: #666;
  }
  .mui-bar-nav {
   
  }
  .mui-bar {
    position: fixed;
    z-index: 10;
    top: 0;
    right: 0;
    left: 0;
    height: 44px;
    padding-right: 10px;
    padding-left: 10px;
    border-bottom: 0;
    background-color: #f7f7f7;
    -webkit-box-shadow: 0 1px 6px #ccc;
    box-shadow: 0 1px 6px #ccc;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .mui-title{
    font-size: 20px;
    font-weight: 300;
    line-height: 44px;
  }
</style>

